﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataAccessLogic;

namespace BusinessLogic
{
    public class PhoneType : CodeTable
    {
        public override DatabaseInteractionDescriptor TableInteractionDescription()
        {
            DatabaseInteractionDescriptor desc = new DatabaseInteractionDescriptor();
            desc.CreateStoredProcedure = DataAccessLogic.StoredProcedures.USP_PHONETYPECODE_CREATE;
            desc.DeleteStoredProcedure = DataAccessLogic.StoredProcedures.USP_PHONETYPECODE_DELETE;
            desc.GetByIDStoredProcedure = DataAccessLogic.StoredProcedures.USP_PHONETYPECODE_GETBYID;
            desc.UpdateStoredProcedure = DataAccessLogic.StoredProcedures.USP_PHONETYPECODE_UPDATE;
            return desc;
        }

        public static List<PhoneType> GetAll()
        {
            return DataAccess.CodeTable_DA.GetAllPhoneTypes();
        }
    }
}